<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<div class="panel-group panel-primary">
  <div class="panel-heading">             
    <h3 id="accordion" class="panel-title">人力资源-功能菜单</h3>
  </div>
  <div class="panel-body bg-info">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list1"><a href="javascript:0;">客户管理</a></h3>
      </div>
      <div id="list1" class="collapse">
        <div class="panel-body">
          <a href="${pageContext.request.contextPath}/customer_toAddPage.action">新增客户</a><br />
<%--           <a href="${pageContext.request.contextPath}/customer_list.action">客户列表</a><br /> --%>
          <a href="${pageContext.request.contextPath}/customer_listPage.action?currentPage=1">客户列表</a>
        </div>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list2"><a href="javascript:0;">联系人管理</a></h3>
      </div>
      <div id="list2" class="collapse">
        <div class="panel-body">
          <a href="${pageContext.request.contextPath}/linkMan_toAddPage.action">新增联系人</a><br />
          <a href="${pageContext.request.contextPath}/linkMan_list.action">联系人列表</a>
        </div>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list3"><a href="javascript:0;">客户拜访管理</a></h3>
      </div>
      <div id="list3" class="collapse">
        <div class="panel-body">
          <a href="${pageContext.request.contextPath}/visit_toAddPage.action">新增客户拜访</a><br />
          <a href="${pageContext.request.contextPath}/visit_list.action">客户拜访列表</a>
        </div>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list4"><a href="javascript:0;">综合查询</a></h3>
      </div>
      <div id="list4" class="collapse">
        <div class="panel-body">
          <a href="${pageContext.request.contextPath}/customer_toSelectPage.action">客户信息查询</a><br />
          <a href="${pageContext.request.contextPath}/linkMan_toSelectPage.action">联系人信息查询</a><br />
          <a href="${pageContext.request.contextPath}/visit_toSelectPage.action">客户拜访记录查询</a>
        </div>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list5"><a href="javascript:0;">统计分析</a></h3>
      </div>
      <div id="list5" class="collapse">
        <div class="panel-body">
          <a href="${pageContext.request.contextPath}/customer_countLevel.action">客户级别统计</a><br />
          <a href="${pageContext.request.contextPath}/customer_countSource.action">客户来源统计</a>
        </div>
      </div>
    </div>
    <c:if test="${user.name == 'admin'}">
	    <div class="panel panel-default">
	      <div class="panel-heading">
	        <h3 class="panel-title" data-parent="#accordion" data-toggle="collapse" data-target="#list6"><a href="javascript:0;">用户管理</a></h3>
	      </div>
	      <div id="list6" class="collapse">
	        <div class="panel-body">
	          <a href="${pageContext.request.contextPath}/adminUser_toAddPage.action">添加用户</a><br />
	          <a href="${pageContext.request.contextPath}/adminUser_list.action">用户列表</a><br />
	        </div>
	      </div>
	    </div>
    </c:if>
  </div>
</div>